package com.kaigejava.juc.synclock;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author kaigejava
 */
public class SyncLock {
    public static void main(String[] args) {
        synchronized (new Object()){

        }

        ReentrantLock lock =  new ReentrantLock();
        lock.lock();
        try{
        }  finally {
            lock.unlock();
        }
    }
}
